package programs.expression.implementedClasses;

import programs.expression.superClasses.BasicExpression;
import programs.expression.superClasses.ExpressionType;
import be.kuleuven.cs.som.annotate.*;

public class BasicDouble extends BasicExpression {

	public BasicDouble(Object value) 
	{
		super(value);
	}
	
	@Override @Immutable @Basic
	public ExpressionType getReturnType() {
		return ExpressionType.DOUBLE;
	}

	@Override @Immutable
	public boolean isValidExpression() {
		return (getValue() instanceof Double);
	}

	@Override
	public BasicDouble assignGlobalVariable(Variable variable) {
		return this;
	}
	
}
